package com.aylog.start.config;

import com.aylog.start.bean.User;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class UserConfig {

    @Bean
    public User user() {
        User user = new User();
        user.setName("张三");
        user.setAge(20);
        return user;
    }

}
